package com.api.user.service;
import com.api.common.mybatis.ResultMap;
import com.api.user.model.CommodityOrder;
import com.api.core.service.Service;
import com.api.core.response.Result;

import java.util.List;
import java.util.Map;

/**
 * Created by wanghuiwen on 2021/04/17.
 */
public interface CommodityOrderService extends Service<CommodityOrder> {
   Result list(String search, String order, Integer page, Integer size);
   Result orderUserList(Map<String,Object> params, String order, Integer page, Integer size);

    Result completed(Long orderId);

    /**
     * 首页订单数据
     * @param type 1 年 2 月
     */
    List<ResultMap<String,Object>> analysis(Integer type);

    List<ResultMap<String, Object>> dayAnalysis();
}
